package com.cosmoplat.mom.iot.client.api.param;

import com.cosmoplat.mom.iot.client.IotApi;
import com.cosmoplat.mom.iot.client.constants.IotApis;
import com.cosmoplat.mom.iot.client.http.HttpRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 分页查询设备报警记录参数
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class GetDeviceAlarmRecordPageParam extends BaseIotPageParam {
    
    /**
     * 设备编码
     */
    private String deviceName;
    
    /**
     * 设备名称
     */
    private String realName;
    
    /**
     * 报警规则
     */
    private String type;
    
    /**
     * 告警级别
     */
    private String severity;
    
    /**
     * 状态
     */
    private String status;
    
    /**
     * 当前页码，从1开始
     */
    private Integer pageNum = 1;
    
    /**
     * 每页大小
     */
    private Integer pageSize = 10;

    
    @Override
    public IotApi api() {
        return IotApis.DEVICE_ALARM_RECORD_PAGE;
    }

    @Override
    public HttpRequest customizeHttpRequest(HttpRequest request) {
        return request.body(this);
    }
}